package cn.fu.ssh.dao.impl;

import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import cn.fu.ssh.dao.IEmployeeDao;
import cn.fu.ssh.domain.Employee;

public class EmployeeDaoImpl extends HibernateDaoSupport implements IEmployeeDao {
	
	/**使用用户名称查询用户的集合*/
	public List<Employee> findEmployeeByName(String name) {
		List<Employee> list = this.getHibernateTemplate().find("from Employee where name=?",new Object[]{name});
		return list;
	}
}
